package com.zxy.ziems.collector;

import com.github.lianjiatech.retrofit.spring.boot.core.RetrofitScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Spring 应用
 * @author 10348359
 * @create 2024-05-01 11:48
 */
@RetrofitScan("com.zxy.ziems.collector.httpClient")
@SpringBootApplication
@ComponentScan(basePackages = {"com.zxy"})
public class CollectorApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(CollectorApplication.class, args);
        context.registerShutdownHook();
    }
}